Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(test): Add npm script to test with ts-node not caching #4065

Merged
merged 1 commit into from
Aug 29, 2018

Conversation

pertrai1
Copy link
Contributor

Description:

There is a npm script that can run - npm run test_no_cache, that will
run the test with TS_NODE_CACHE set to false.

Related issue (if exists):
#3948

There is a npm script that can run - `npm run test_no_cache`, that will
run the test with `TS_NODE_CACHE` set to false.

Closes ReactiveX#3948
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.2%) to 96.797% when pulling ea5e115 on pertrai1:3948-disable_ts-node_tests into ee29ee0 on ReactiveX:master.

Copy link
Collaborator

@cartant cartant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think it's worth having the script you've added, if only as a reminder that the cache can be the reason for passing locally and failing on Travis. I think your adding a separate script is the way to go, too, as it's massively slower than not using the cache.

@@ -13,11 +13,12 @@ describe('Migration Schematic', () => {
tree.create('/package.json', `{}`);
});

it('adds missing dependencies', () => {
it('adds missing dependencies', (done) => {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the done here really needed? Is there a particular reason for adding it? It seems superfluous.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@cartant Sorry, should have commented on that. When I added the script and ran npm run test_no_cache, the test failed with a timeout without having the done.

@benlesh benlesh merged commit 2f86b9d into ReactiveX:master Aug 29, 2018
@benlesh
Copy link
Member

benlesh commented Aug 29, 2018

Thanks @pertrai1

@lock lock bot locked as resolved and limited conversation to collaborators Sep 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants